package com.woyou.ui.activity;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.citaq.ideliver.R;
import com.woyou.ui.component.RoundImageView;
import com.woyou.utils.Dialog;

/**
 * 意见反馈 
 * 
 * @author tanglc
 */
@EActivity(R.layout.fm_feedback)
public class FeedBackActivity extends BaseActivity {

	Dialog dialog = new Dialog();

	@ViewById // 头部标题
	TextView head_title;
	@ViewById // APP问题、服务问题、推荐店铺、我要开店
	RoundImageView feed_sendshopbtn, feed_openshopsbtn;
	@ViewById // 退出
	RelativeLayout myback;

	@ViewById
	LinearLayout feed_servicebtn, feed_appproblembtn;

	@Override
	public void onResume() {
		super.onResume();
		initView();
	}

	// 退出、APP问题、服务问题、推荐店铺、我要开店
	@Click({ R.id.myback, R.id.feed_appproblembtn, R.id.feed_servicebtn })
	void OnClick(View view) {
		switch (view.getId()) {
		case R.id.myback:
			// 退出意见反馈界面
			finish();
			break;
			
		case R.id.feed_appproblembtn:
			// 进入APP问题反馈界面
			openActivity(AppProblemActivity_.class, null);
			break;
			
		case R.id.feed_servicebtn:
			// 进入服务问题界面
			openActivity(ServiceProblemActivity_.class, null);
			break;
			
		case R.id.feed_sendshopbtn:
			// 进入推荐商户界面
			dialog.Toast(mActivity, "谢谢您的支持，该功能暂未开放，请耐心等待！");
			break;
			
		case R.id.feed_openshopsbtn:
			// 进入申请开店界面
			dialog.Toast(mActivity, "谢谢您的支持，该功能暂未开放，请耐心等待！");
			break;

		default:
			break;
		}
	}

	public void initView() {
		head_title.setText("意见反馈");
	}

	@Override
	public boolean backOperate() {
		return false;
	}
	

}
